﻿using System.IO;

namespace WJP.Serialization
{
    public interface ISerializationFormatter
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="serializationStream"></param>
        /// <returns></returns>
        object Deserialize(Stream serializationStream);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="serializationStream"></param>
        /// <param name="graph"></param>
        void Serialize(Stream serializationStream, object graph);
    }
}